package com.ios.dto;

import com.ios.entity.RelativeLocation;
import com.ios.enums.LocationStateEnum;

/**
*@Author:WenTao
*@Description:监护人gps信息中间类型
*@Date:22:27 2018/7/22
*/
public class RelativeLocationExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*监护人用户地址信息*/
    private RelativeLocation relativeLocation;

    /*操作失败时的构造器*/
    public RelativeLocationExecution(LocationStateEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public RelativeLocationExecution(LocationStateEnum stateEnum,RelativeLocation relativeLocation){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.relativeLocation = relativeLocation;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public RelativeLocation getRelativeLocation() {
        return relativeLocation;
    }

    public void setRelativeLocation(RelativeLocation relativeLocation) {
        this.relativeLocation = relativeLocation;
    }
}
